//
//  DropMenuButton.h
//  TengyunStation
//
//  Created by Johnny on 15/8/27.
//  Copyright (c) 2015年 xingrong. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol DropMenuButtonDelegate <NSObject>

- (void)clickedButtonWithSearchType:(NSString *)searchType;

@end

@interface DropMenuButton : UIButton<UITableViewDataSource,UITableViewDelegate,UIGestureRecognizerDelegate> {
    NSArray *_menus;
    UIView *_bgView;
    UIView *_bgSuperView;
    UITableView *_menuTableView;
    UIImageView *_imageView;
    UILabel *_nameLabel;
    BOOL _isShow;
}

@property(nonatomic,weak)id<DropMenuButtonDelegate>delegate;

- (id)initWithMenus:(NSArray *)menus InView:(UIView *)view;

@end
